package cn.yimu.encryption;

import java.io.UnsupportedEncodingException;

public class Encryption {
	
	public static String simpleEncrptForByte(final String target) throws UnsupportedEncodingException {
		final int limit = 1700;
		byte[] bytes = target.getBytes("UTF-16");
		int sum = bytes.length;
		
		for (byte oneByte : bytes) {
			sum += oneByte;
		}
		
		String result = String.format("%d%d", limit - sum, target.length());
		
		return result;
	}
	
	
}
